package cn.stylefeng.guns.modular.tool.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import cn.stylefeng.guns.modular.tool.entity.ToolTaskMoney;
import cn.stylefeng.guns.modular.tool.model.params.ToolTaskMoneyParam;
import cn.stylefeng.guns.modular.tool.model.result.ToolTaskMoneyResult;

/**
 * 计件明细 Mapper 接口
 */
public interface ToolTaskMoneyMapper extends BaseMapper<ToolTaskMoney> {

    /**
     * 获取列表
     *
     * @author 
     * @Date 2022-04-07
     */
    List<ToolTaskMoneyResult> customList(@Param("paramCondition") ToolTaskMoneyParam paramCondition);

    /**
     * 获取map列表
     *
     * @author 
     * @Date 2022-04-07
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") ToolTaskMoneyParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author 
     * @Date 2022-04-07
     */
    Page<ToolTaskMoneyResult> customPageList(@Param("page") Page page, @Param("paramCondition") ToolTaskMoneyParam paramCondition, @Param("condition") String condition, @Param("operateId")Long operateId);
    
    Page<ToolTaskMoneyResult> customPageListsum(@Param("page") Page page, @Param("paramCondition") ToolTaskMoneyParam paramCondition, @Param("condition") String condition, @Param("operateId")Long operateId);
    
    Page<ToolTaskMoneyResult> customPageListsum3(@Param("page") Page page, @Param("paramCondition") ToolTaskMoneyParam paramCondition, @Param("condition") String condition,@Param("operateId")Long operateId);

    /**
     * 获取分页map列表
     *
     * @author 
     * @Date 2022-04-07
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") ToolTaskMoneyParam paramCondition);

	void deleteBySpec(@Param("paramCondition")ToolTaskMoneyParam moneyParam);

	boolean saveBatchList(@Param("list")List<ToolTaskMoneyParam> listsave);

	void updateBySpec(@Param("paramCondition")ToolTaskMoneyParam param);

	List<ToolTaskMoneyResult> findListBySpec(@Param("paramCondition")ToolTaskMoneyParam param);

}
